#include<stdio.h>
int main()
{
	int a;
	switch(scanf("%d",&a))
	{
		case 1:a==1?printf("Good morning"):a=a;
		case 2:a==2?printf("Good afternoon"):a=a;
		case 3:a==3?printf("Good evening"):a=a;
		case 4:a==4?printf("Good night"):a=a;
		case 5:a!=1&&a!=2&&a!=3&&a!=4?printf("Bye-bye"):a=a;
	}
	return 0;
}
